From 709580d35e86cb1a246bd6713cd6d622e0137e1c Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Fri, 23 May 2003 12:22:51 +0000 Subject: [PATCH] bitkeeper revision 1.249 (3ece129b9g77vsjTtSwOh-g8aHpxHA) dom0_ops.c: Small bug fix. --- xen/common/dom0_ops.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xen/common/dom0_ops.c b/xen/common/dom0_ops.c index ec1e9df604..ba6d22f19d 100644 --- a/xen/common/dom0_ops.c +++ b/xen/common/dom0_ops.c @@ -93,11 +93,14 @@ long do_dom0_op(dom0_op_t *u_dom0_op) { struct task_struct * p = find_domain_by_id(op.u.meminfo.domain); ret = -EINVAL; - if ( (p != NULL) && (p->flags & PF_CONSTRUCTED) ) + if ( p != NULL ) { - wake_up(p); - reschedule(p); - ret = p->domain; + if ( (p->flags & PF_CONSTRUCTED) != 0 ) + { + wake_up(p); + reschedule(p); + ret = p->domain; + } put_task_struct(p); } } -- 2.30.2